package com.sfd.api.controller;

import com.sfd.core.module.Result;
import org.springframework.web.bind.annotation.*;

/**
 * @author haden
 * @date 2022/8/13 22:38
 **/
@RestController
public class BaseController {

    @RequestMapping(method = {RequestMethod.POST, RequestMethod.GET}, value = "/error")
    public Result<String> error(@RequestParam(required = false) String msg) {
        return Result.sysError(msg);
    }
}
